package com.jia.springcloud.service;

import com.jia.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

/**
 * @author 1038940655
 * @create 2021/1/22 17:39
 */
@Service
public class PaymentFallbackService implements PaymentHystrixService{
    @Override
    public Payment getPaymentById(Integer id) {
        return new Payment(6,"宕机演示");
    }

    @Override
    public String paymentInfo_TimeOut() {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut , (┬＿┬)";
    }
}
